Skip to content

ionos-dev-v32: Upgrade IONOS branch from v8.7.1 (stable31) to v9.0.3 (stable32)#12

Closed
Copilot wants to merge 1 commit into
ionos-devfrom
copilot/ionos-dev-v32
Closed

ionos-dev-v32: Upgrade IONOS branch from v8.7.1 (stable31) to v9.0.3 (stable32)#12
Copilot wants to merge 1 commit into
ionos-devfrom
copilot/ionos-dev-v32

Conversation

Copy link
Copy Markdown

Copilot AI commented May 6, 2026

Establishes the ionos-dev-v32 baseline on top of v9.0.3, carrying forward only the one IONOS customisation that is not yet in upstream stable32.

What needs to be applied on top of v9.0.3

Only one change requires cherry-picking:

git checkout -b ionos-dev-v32 v9.0.3
git cherry-pick 24347e673  # IONOS: feat: hide help menu

src/view/Office.vue — sends Hide_Menu_Item postMessage on Document_Loaded to suppress the Collabora Online help menu entry. v9.0.3 added Insert_Button logic in the same block; resolve by placing the IONOS line before documentReady():

} else if (args.Status === 'Document_Loaded') {
    this.sendPostMessage('Hide_Menu_Item', { id: 'help' })  // IONOS
    this.documentReady()
    if (loadState('richdocuments', 'open_local_editor', true) && !this.isEmbedded) {
        this.sendPostMessage('Insert_Button', { ... })  // upstream v9.0.3
    }
}

Already in v9.0.3 — no cherry-pick needed

IONOS patch Upstream entry point
TokenManager.phpuserCanEdit($editoruid) guard PR nextcloud#4698 (39610ba99)
RegisterTemplateFileCreatorListener.phpuserCanEdit() check PR nextcloud#4807 (deab95d3e), later refactored to loggedInUser() + userCanEdit($user) pattern
RegisterTemplateFileCreatorListenerTest.php — IONOS unit tests PR nextcloud#4773 (7fabdedb2)

Obsolete — do not backport

src/public.js edit-groups frontend guard (f1db58f79): the file was completely rewritten in v9.0.3. The restriction is now enforced server-side by RegisterTemplateFileCreatorListener.php via loggedInUser() + userCanEdit().

DB migrations (require occ upgrade on deploy)

Both affect richdocuments_wopi and ship with v9.0.3 — no IONOS-specific schema changes:

Migration Change
Version9000Date20250128212050 guest_displayname → VARCHAR(255)
Version10000Date20251217143558 version: INT → VARCHAR(1024), default '0'

Target compatibility

v9.0.3 requires Nextcloud 32 (min-version="32" max-version="32"); the old ionos-dev targeted NC31.

Summary

TODO

  • Create ionos-dev-v32 branch from v9.0.3 and cherry-pick 24347e673 with conflict resolution
  • Run occ upgrade on deployment to apply the two DB migrations
  • Confirm NC32 environment is in place before deploying

Checklist

  • Code is properly formatted
  • Sign-off message is added to all commits
  • Documentation (manuals or wiki) has been updated or is not required

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants